<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:94:"/app/wwwroot/zhangwei/www/gongzi/public/../application/index/view/manage/payslip_settings.html";i:1672976420;s:74:"/app/wwwroot/zhangwei/www/gongzi/application/index/view/layout/manage.html";i:1671875144;s:74:"/app/wwwroot/zhangwei/www/gongzi/application/index/view/common/script.html";i:1671875145;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head class="layui-layout-body">
    <meta charset="utf-8">
    <title><?php echo htmlentities($site['name']); ?></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <meta name="renderer" content="webkit">
    <link href="/assets/css/frontend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo htmlentities(\think\Config::get('site.version')); ?>" rel="stylesheet">
    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
    <!--[if lt IE 9]>
    <script src="/assets/js/html5shiv.js"></script>
    <script src="/assets/js/respond.min.js"></script>
    <![endif]-->
    <script type="text/javascript">
        var require = {
            config: <?php echo json_encode($config); ?>
        };
    </script>
</head>
<body class="layui-layout-body" id="layer1">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-nav layui-layout-right">
            <div class="head_img"><img src="<?php echo cdnurl(htmlentities($user['avatar'])); ?>" alt=""/><?php echo $user['nickname']; ?></div>
        </div>
    </div>
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧垂直导航区域-->
            <div class="logo"><img src="/assets/manage/images/logo.png" width="64" height="64" alt=""/></div>
            <ul class="layui-nav nav">
                <?php if($auth->check('manage/index')): ?>
                <li class="layui-nav-item <?php echo check_navs_active('manage/index'); ?>">
                    <a href="<?php echo url('manage/index'); ?>"><i class="iconfont icon-shouye"></i>首页</a>
                </li>
                <?php endif; if($auth->check('manage/payslip_add')): ?>
                <li class="layui-nav-item <?php echo check_navs_active('manage/payslip_add'); ?>">
                    <a href="<?php echo url('manage/payslip_add'); ?>"><i class="iconfont icon-gongzitiao"></i>新增工资条</a>
                </li>
                <?php endif; if($auth->check('manage/index')): ?>
                <li class="layui-nav-item <?php echo check_navs_active('manage/payslip_list'); ?>">
                    <a href="<?php echo url('manage/payslip_list'); ?>"><i class="iconfont icon-fasongxiaoxi"></i>发送记录</a>
                </li>
                <?php endif; if($auth->check('manage/payslip_feedback')): ?>
                <li class="layui-nav-item <?php echo check_navs_active('manage/payslip_feedback'); ?>">
                    <a href="<?php echo url('manage/payslip_feedback'); ?>"><i class="iconfont icon-xinxi"></i>反馈查看</a>
                </li>
                <?php endif; if($auth->check('manage/payslip_settings')): ?>
                <li class="layui-nav-item <?php echo check_navs_active('manage/payslip_settings'); ?>">
                    <a href="<?php echo url('manage/payslip_settings'); ?>"><i class="iconfont icon-shezhi2"></i>发放设置</a>
                </li>
                <?php endif; if($auth->check('manage/address_book')): ?>
                <li class="layui-nav-item <?php echo check_navs_active('manage/address_book'); ?>">
                    <a href="<?php echo url('manage/address_book'); ?>"><i class="iconfont icon-bg-maillist"></i>通讯录</a>
                </li>
                <?php endif; ?>
            </ul>
        </div>
    </div>
    <div class="layui-body">
        <div class="content ffsz">
    <form id="post-form" class="layui-form" role="form" data-toggle="validator" method="POST" action="<?php echo url('manage/payslip_settings'); ?>">
        <div class="layui-clear">
            <div class="ff_left layui-card">
                <div class="phone">
                    <div class="phone_header"><img src="/assets/manage/images/phone_img01.gif" alt=""/></div>
                    <div class="phone_content">
                        <div class="img"><img src="<?php echo cdnurl($payslip_config['image']); ?>" width="360" height="165" alt=""/></div>
                        <div class="text">
                            <h3><?php echo (isset($payslip_config['title']) && ($payslip_config['title'] !== '')?$payslip_config['title']:''); ?></h3>
                            <p><?php echo (isset($payslip_config['zhaiyao']) && ($payslip_config['zhaiyao'] !== '')?$payslip_config['zhaiyao']:''); ?></p>
                        </div>
                    </div>
                    <div class="phone_bottom"></div>
                </div>
            </div>
            <div class="ff_right layui-card">
                <div class="layui-card-header">发放设置</div>
                <div class="layui-card-body">
                    <div class="layui-elem-quote">工资发放通知</div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">通知标题</label>
                        <div class="input">
                            <input type="text" value="<?php echo (isset($payslip_config['title']) && ($payslip_config['title'] !== '')?$payslip_config['title']:''); ?>" name="row[title]" class="layui-input text_title" maxlength="18" data-rule="required"<?php echo !empty($payslip_config['open_auto_title'])?' readonly':''; ?>>
                            <span class="text_calculate"></span>
                        </div>
                        <div class="checkbox<?php echo !empty($payslip_config['open_auto_title'])?' active':''; ?>">
                            <input type="hidden" name="row[open_auto_title]" value="<?php echo (isset($payslip_config['open_auto_title']) && ($payslip_config['open_auto_title'] !== '')?$payslip_config['open_auto_title']:'0'); ?>">
                            <i class="iconfont icon-gou"></i>
                        </div>
                        使用工资条名称
                        <div class="wen_icon">
                            <i class="iconfont icon-wenhaoxiao" lay-tips="{YYYY}取工资条的年份{MM}取工资条的月份"></i>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">通知图片</label>
                        <div class="layui-input-block">
                            <input type="hidden" name="row[image]" value="<?php echo (isset($payslip_config['image']) && ($payslip_config['image'] !== '')?$payslip_config['image']:''); ?>" data-rule="required" data-msg-required="请上传通知图片">
                            <a class="upload_butt" id="file">选择文件</a>
                            <span class="color_4873C1">支持JPG、PNG格式，较好的效果为大图 1068*455，小图150*150。</span>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">通知摘要</label>
                        <div class="textarea">
                            <textarea class="layui-textarea text_title" name="row[zhaiyao]" maxlength="360" data-rule="required" placeholder="请填写通知摘要"><?php echo (isset($payslip_config['zhaiyao']) && ($payslip_config['zhaiyao'] !== '')?$payslip_config['zhaiyao']:''); ?></textarea>
                            <p class="text_calculate"></p>
                        </div>
                    </div>
                    <div class="layui-elem-quote">工资条说明</div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">说明</label>
                        <div class="textarea">
                            <textarea class="layui-textarea text_title" name="row[shuoming]" maxlength="360" data-rule="required" placeholder="请填写工资条说明"><?php echo (isset($payslip_config['shuoming']) && ($payslip_config['shuoming'] !== '')?$payslip_config['shuoming']:''); ?></textarea>
                            <p class="text_calculate"></p>
                        </div>
                    </div>
                    <div class="layui-elem-quote">工资项目显示规则</div>
                    <div class="layui-form-item">
                        隐藏空值工资项目
                        <div class="switch<?php echo !empty($payslip_config['open_hidden_null'])?' active':''; ?>">
                            <input type="hidden" name="row[open_hidden_null]" value="<?php echo (isset($payslip_config['open_hidden_null']) && ($payslip_config['open_hidden_null'] !== '')?$payslip_config['open_hidden_null']:'0'); ?>">
                            <div class="switch_handle"></div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        隐藏零值工资项目
                        <div class="switch<?php echo !empty($payslip_config['open_hidden_zero'])?' active':''; ?>">
                            <input type="hidden" name="row[open_hidden_zero]" value="<?php echo (isset($payslip_config['open_hidden_zero']) && ($payslip_config['open_hidden_zero'] !== '')?$payslip_config['open_hidden_zero']:'0'); ?>">
                            <div class="switch_handle"></div>
                        </div>
                    </div>
                    <div class="layui-elem-quote">工资项目显示规则</div>
                    <div class="layui-form-item">
                        开启查询密码
                        <div class="switch<?php echo !empty($payslip_config['open_query_pwd'])?' active':''; ?>">
                            <input type="hidden" name="row[open_query_pwd]" value="<?php echo (isset($payslip_config['open_query_pwd']) && ($payslip_config['open_query_pwd'] !== '')?$payslip_config['open_query_pwd']:'0'); ?>">
                            <div class="switch_handle"></div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        开启疑问反馈
                        <div class="switch<?php echo !empty($payslip_config['open_feedback'])?' active':''; ?>">
                            <input type="hidden" name="row[open_feedback]" value="<?php echo (isset($payslip_config['open_feedback']) && ($payslip_config['open_feedback'] !== '')?$payslip_config['open_feedback']:'0'); ?>">
                            <div class="switch_handle"></div>
                        </div>
                        工资发放后 <input type="text" name="row[feedback_days]" value="<?php echo (isset($payslip_config['feedback_days']) && ($payslip_config['feedback_days'] !== '')?$payslip_config['feedback_days']:'0'); ?>" class="layui-input ffsz_input"> 天内允许反馈
                        <div class="wen_icon">
                            <i class="iconfont icon-wenhaoxiao" lay-tips="为0时不限制员工反馈时间"></i>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        开启金额隐藏
                        <div class="switch<?php echo !empty($payslip_config['open_hidden_money'])?' active':''; ?>">
                            <input type="hidden" name="row[open_hidden_money]" value="<?php echo (isset($payslip_config['open_hidden_money']) && ($payslip_config['open_hidden_money'] !== '')?$payslip_config['open_hidden_money']:'0'); ?>">
                            <div class="switch_handle"></div>
                        </div>
                        <div class="wen_icon">
                            <i class="iconfont icon-wenhaoxiao" lay-tips="开启后员工进入工资条详情页需要点击“眼睛”图标才能展示金额"></i>
                        </div>
                    </div>
                    <div class="layui-form-item read">
                        开启已阅确认
                        <div class="switch<?php echo !empty($payslip_config['open_view_confirm'])?' active':''; ?>">
                            <input type="hidden" name="row[open_view_confirm]" value="<?php echo (isset($payslip_config['open_view_confirm']) && ($payslip_config['open_view_confirm'] !== '')?$payslip_config['open_view_confirm']:'0'); ?>">
                            <div class="switch_handle"></div>
                        </div>
                    </div>
                    <div class="read_item"<?php echo !empty($payslip_config['open_view_confirm'])?'' : ' style="display:none"'; ?>>
                        <div class="layui-form-item">
                            自动确认设置
                            <div class="switch<?php echo !empty($payslip_config['open_auto_confirm'])?' active':''; ?>">
                                <input type="hidden" name="row[open_auto_confirm]" value="<?php echo (isset($payslip_config['open_auto_confirm']) && ($payslip_config['open_auto_confirm'] !== '')?$payslip_config['open_auto_confirm']:'0'); ?>">
                                <div class="switch_handle"></div>
                            </div>
                            工资发放后 <input type="text" name="row[auto_confirm_hours]" value="<?php echo (isset($payslip_config['auto_confirm_hours']) && ($payslip_config['auto_confirm_hours'] !== '')?$payslip_config['auto_confirm_hours']:'0'); ?>" class="layui-input ffsz_input"> 小时自动确认（填写范围1～170）
                        </div>
                        <div class="layui-form-item">
                            确认提醒规则
                            <div class="switch<?php echo !empty($payslip_config['open_auto_notice'])?' active':''; ?>">
                                <input type="hidden" name="row[open_auto_notice]" value="<?php echo (isset($payslip_config['open_auto_notice']) && ($payslip_config['open_auto_notice'] !== '')?$payslip_config['open_auto_notice']:'0'); ?>">
                                <div class="switch_handle"></div>
                            </div>
                            工资发放后 <input type="text" name="row[auto_notice_hours]" value="<?php echo (isset($payslip_config['auto_notice_hours']) && ($payslip_config['auto_notice_hours'] !== '')?$payslip_config['auto_notice_hours']:'0'); ?>" class="layui-input ffsz_input"> 小时提醒员工（填写范围0～170）
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="add_but_box">
            <button type="reset" class="layui-btn layui-btn-primary">取消</button>
            <button type="submit" class="layui-btn layui-btn-determine gzt_upload_but">保存设置</button>
        </div>
    </form>
</div>
    </div>
</div>
<link rel="stylesheet" href="/assets/manage/layui/css/layui.css">
<link rel="stylesheet" href="/assets/manage/css/css.css?v=<?php echo htmlentities(\think\Config::get('site.version')); ?>">
<link rel="stylesheet" href="//at.alicdn.com/t/c/font_3789954_npmbld8fjlc.css">
<script src="/assets/js/require<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js" data-main="/assets/js/require-frontend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo htmlentities($site['version']); ?>"></script>
</body>
</html>